var e, t = require("@babel/runtime/helpers/interopRequireDefault"), a = t(require("@babel/runtime/regenerator")), r = require("@babel/runtime/helpers/asyncToGenerator");

t(require("./utils/request"));

App({
    onLaunch: (e = r(a.default.mark(function e() {
        var t, r = this;
        return a.default.wrap(function(e) {
            for (;;) switch (e.prev = e.next) {
              case 0:
                (t = wx.getUpdateManager()).onCheckForUpdate(function(e) {
                    console.log("hasUpdate: " + e.hasUpdate);
                }), t.onUpdateReady(function() {
                    wx.showModal({
                        title: "更新提示",
                        content: "新版本已经准备好，是否重启应用？",
                        success: function(e) {
                            e.confirm && t.applyUpdate();
                        }
                    });
                }), t.onUpdateFailed(function(e) {
                    console.log("updateFailed: " + e);
                }), wx.getSystemInfo({
                    success: function(e) {
                        r.globalData.statusBarHeight = e.statusBarHeight, r.globalData.windowHeight = e.windowHeight;
                    }
                }), wx.getSetting({
                    success: function(e) {
                        e.authSetting["scope.userInfo"];
                    }
                });

              case 6:
              case "end":
                return e.stop();
            }
        }, e);
    })), function() {
        return e.apply(this, arguments);
    }),
    globalData: {
        authorized: !1,
        userInfo: {
            name: "",
            headImg: "",
            companyName: "",
            companyId: "",
            score: "",
            isParty: !1,
            rankImg: null,
            partyBranchName: ""
        },
        scoreboard: "000",
        restMemberScore: 0,
        baseUrl: "https://culture.cethik.com:8087/api",
        resourceUrl: "https://culture.cethik.com:8087",
        statusBarHeight: 0,
        windowHeight: 0,
        websocketUrl: "wss://culture.cethik.com:8087/api/wxapp/webSocket/",
        websocketActivityUrl: "wss://culture.cethik.com:8087/api/wxapp/activityWebSocket/",
        dailyTimeLimit: 0,
        passTimeLimit: 0,
        pkTimeLimit: 0
    }
});